package org.pzy.service.impl;

import org.pzy.entity.User;
import org.pzy.repository.UserRepository;
import org.pzy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: DRevelation
 * @Date: 2022/11/17 9:53
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public void saveUser(User user) {
        userRepository.save(user);
    }
}
